<{extends file="<{$tempdir}>/public/admin.html"}> 
<{block name=extendjs}>
<script src="<{$siteurl}>/templates/<{$tempdir}>/public/js/jquery.PrintArea.js" type="text/javascript" language="javascript"></script>
<script src="<{$siteurl}>/templates/<{$tempdir}>/public/js/datepicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
<{/block}>
 <{block name=controlname}>订单统计<{/block}>
 <{block name=bodylist}>
 
 <div class="managShopCon">
	<div class="managShopBox">
		<div class="managShopMain">
			<div class="managShopClas">
				<ul>
					<li class="maShClaA"><a href="<{ofunc type=url link="/areaadminpage/order/module/ordertotal"}>">网站订单</a></li>
					<li><a href="<{ofunc type=url link="/areaadminpage/order/module/orderyjin"}>">店铺订单</a></li>
				</ul>
			</div>
			<div class="ordManagQuery">
			<form method="post" name="form1" action="<{ofunc type=url link="/areaadminpage/order/module/ordertotal"}>">
				<ul>
					<li><span>查询类型：</span>
						<select name="querytype">
							<option value="0">未选择</option>
							<option value="mb.username"  <{if $querytype == 'mb.username'}>selected<{/if}> >会员名</option>
							<option value="ord.shopname"  <{if $querytype == 'ord.shopname'}>selected<{/if}>>店铺名称</option>
							<option value="ord.buyername"  <{if $querytype == 'ord.buyername'}>selected<{/if}>>买家联系人</option>
							<option value="ord.buyerphone"  <{if $querytype == 'ord.buyerphone'}>selected<{/if}>>买家联系电话</option>
 						</select>
					</li>
					<li><span>查询条件：</span><input type="text" name="searchvalue" value="<{$searchvalue}>" class="searchvalue"></li>
					<li>
						<span>从</span>
				 <input style="float:left;" class="Wdate datefmt searchvalue" type="text" name="starttime" id="starttime" value="<{$starttime|date_format:"%Y-%m-%d"}>"  onFocus="WdatePicker({isShowClear:false,readOnly:true});" />  

						<span>到</span>
				 <input style="float:left;" class="Wdate datefmt searchvalue" type="text" name="endtime" id="endtime" value="<{$endtime|date_format:"%Y-%m-%d"}>"  onFocus="WdatePicker({isShowClear:false,readOnly:true});" />                  

						<input type="submit" value="提交查询" class="searchBut">
					</li>
				</ul>
				</form>
			</div>
			<div class="managShopList">
				<table>
					<thead>
						<tr>
							 
							<td width="300">订单状态</td>
							<td width="184">订单数量</td>
							<td width="364">订单金额（元）</td>
							<td width="272">抵扣总积分</td>
						</tr>
					</thead>
					<tbody>
					<{if empty($list)}>
					 <tr class="s_out" > 
                        <td colspan="4" > 暂无数据</td> 
                      
                      </tr> 
					  <{/if}>
					  <{foreach from=$list item=items}> 
						<tr>
							 
							<td><{$buyerstatus[$items['status']]}></td>
							<td><{$items['shuliang']}></td>
							<td><{$items['allcost']}></td>
							<td><{$items['scorecost']}></td>
						</tr>
						 <{/foreach}> 
						 
					</tbody>
				</table>
			</div>
		 
		</div>
	</div>
</div>
 
 

<{/block}>